var propertyInfo = typeof(ShellWindow).GetProperty("ProgressbarVisibility"); var propertyPath = new PropertyPath("(0)", propertyInfo); var binding = new Binding() { Path = propertyPath, Mode = BindingMode.TwoWay };